package com.central.kerberosManage.service;

import com.central.common.model.PageResult;
import com.central.common.model.Result;
import com.central.common.service.ISuperService;
import com.central.kerberosManage.model.HadoopClusterHost;
import com.central.kerberosManage.model.KeytabFile;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * @author Tindy
 * @date 2021/7/16
 * @describe
 */
public interface IKAMService extends ISuperService<KeytabFile> {
    void createOrUpdateKA(String proName, String username) throws IOException, SQLException;

    Result addHadoopClusterHost(List<HadoopClusterHost> hostList);

    Result delHadoopClusterHost(List<Long> hostIds);

    PageResult<HadoopClusterHost> findHadoopClusterHosts(Map<String, Object> params);

    Result flushClusterSysAccount() throws IOException;
}